package designPattern.proxy代理模式.staticProxy.demo01;

public class SoldProxy implements Sold {

    private Sold target;

    public SoldProxy(Sold target) {
        this.target = target;
    }

    @Override
    public void show() {
        before();
        target.show();
        after();
    }

    private void before() {
        System.out.println("proxy before");
    }

    private void after() {
        System.out.println("proxy after");
    }
}
